from flask import Flask,jsonify
from  flask_cors import CORS


app = Flask(__name__)

#跨域
CORS(app)

#解决中文乱码
from conf.config import Config
app.config.from_object(Config)


#部门蓝图
from views.depart import bp_depart
app.register_blueprint(bp_depart,url_prefix='/depart')




#测试
@app.route("/ceshi/")
async def ceshi():
    return jsonify({"code":200,'mas':'你好 我很好 hello world hha '})



if __name__ == '__main__':
    app.run(debug=True,port=5000,host='127.0.0.1')





